import { htmlToDocx } from '../src/index';

describe('用户特定测试用例', () => {
  test('用户提供的带有MsoNormal类和data-custom-hr属性的段落', async () => {
    const html = `
      <p class="MsoNormal" style="line-height: 30pt; margin: 0px; padding: 0px; border-bottom: 1pt solid rgb(0, 0, 1);" data-custom-hr="true">抄送：x x x</p>
      <p class="MsoNormal" style="line-height: 30pt; margin: 0px; padding: 0px; border-bottom: 1pt solid rgb(0, 0, 2);" data-custom-hr="true">抄送：x x x</p>
    `;

    console.log('开始转换HTML:', html);
    const result = await htmlToDocx(html);
    console.log('转换完成，文档已创建');
    
    expect(result.document).toBeDefined();
    expect(result.warnings).toEqual([]);
  });
});